﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta name="renderer" content=”webkit|ie-comp|ie-stand”/>
    <meta name="viewport" content="width=device-width"/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <link rel="icon" href="/favicon.ico">

    <title>凭证导入</title>
    <link href="/assets/plugins/pace/pace-theme-minimal.css" rel="stylesheet"/>
    <link href="/assets/plugins/font/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="/assets/plugins/bootstrap/bootstrap.min.css" rel="stylesheet"/>

    <script src="/assets/plugins/pace/pace.min.js"></script>
    <script src="/assets/plugins/jquery/jquery-1.10.2.min.js"></script>
    <script src="/assets/plugins/bootstrap/bootstrap.min.js"></script>
    <script src="/assets/plugins/jquery/plugin/jqprint/jquery.jqprint-0.3.js"></script>


    <link href="/module/style/lr-common.css" rel="stylesheet"/>
    <link href="/module/plugin/scroll/scroll.css" rel="stylesheet"/>
    <link href="/module/style/lr-iframe-index.css" rel="stylesheet"/>
    <link href="/module/plugin/layout/lr-layout.css" rel="stylesheet"/>
    <link href="/module/plugin/tree/lr-tree.css" rel="stylesheet"/>
    <link href="/module/plugin/select/lr-select.css" rel="stylesheet"/>

    <link href="/module/plugin/timeline/lr-timeline.css" rel="stylesheet"/>
    <link href="/module/plugin/formselect/lr-formselect.css" rel="stylesheet"/>
    <link href="/module/plugin/custmerquery/lr-custmerquery.css" rel="stylesheet"/>
    <link href="/module/plugin/date/lr-datepicker.css" rel="stylesheet"/>
    <link href="/module/plugin/grid/jfgrid.css" rel="stylesheet"/>

    <!-- hiprint -->
    <link href="/assets/plugins/hiprint/css/hiprint.css" rel="stylesheet"/>
    <link href="/assets/plugins/hiprint/css/print-lock.css" rel="stylesheet"/>


    <link rel="stylesheet" href="/assets/plugins/hiprint/css/print-lock.css">
    <script src="/assets/plugins/hiprint/hiprint.bundle.js"></script>
    <script src="/assets/plugins/hiprint/polyfill.min.js"></script>
    <script src="/assets/plugins/hiprint/plugins/jquery.hiwprint.js"></script>
    <script src="/assets/plugins/hiprint/plugins/jquery.minicolors.min.js"></script>


    <script src="/assets/plugins/datepicker/WdatePicker.js"></script>
    <!--[if lt IE 9]>
    <script src="/assets/plugins/bootstrap/html5shiv.min.js"></script>
    <script src="/assets/plugins/bootstrap/respond.min.js"></script>
    <![endif]-->
    <script src="/module/formatMoney.js"></script>
    <script>
        function request(d) {
            for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) {
                var b = c[a].split("=");
                if (b[0] == d) if ("undefined" == unescape(b[1])) break; else return unescape(b[1])
            }
            return ""
        };
    </script>

</head>

<body class="Chrome 64.0 lr-uitheme-top">

<div class="lr-layout">
    <div class="lr-layout-center">
        <div class="lr-layout-wrap lr-layout-wrap-notitle" style="">
            <div class="lr-layout-tool">
                <div class="lr-layout-tool-left">
                    <div class="lr-layout-tool-item">
                        <div id="company_select" style="border-radius: 4px;width:180px;"></div>
                    </div>

                    <div class="lr-layout-tool-item">
                        <div id="category" style="border-radius: 4px;width:120px;">
                            <ul>
                                <li data-value="1">行政单位</li>
                                <li data-value="2">事业单位</li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="lr-layout-tool-right">
                    <div class=" btn-group btn-group-sm">
                        <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
                    </div>
                    <div class=" btn-group btn-group-sm">
                        <a id="lr_import_xml" class="btn btn-default"><i class="fa fa-list"></i>&nbsp;<span
                                class="lrlg">导入期初</span></a>
                        <a id="lr_clear_import_xml" class="btn btn-danger"><i class="fa fa-remove"></i>&nbsp;<span
                                class="lrlg">清除期初</span></a>

                        <a id="lr_import" class="btn btn-primary"><i class="fa fa-file-excel-o"></i>&nbsp;<span
                                class="lrlg">Excel导入序时账</span></a>

<!--                        <a id="lr_excute" class="btn btn-default"><i class="fa fa-file-excel-o"></i>&nbsp;<span-->
<!--                                class="lrlg">生成决算报告</span></a>-->
                    </div>

                </div>
            </div>
            <div class="lr-layout-body" id="gridtable" style="width: 50%;">
                <div class="content" style="padding-top:20px;">
                    <div class="lr-form-item">
                        <div class="lr-form-item-title">单位</div>
                        <input id="companyName" type="text" class="form-control" readonly/>
                    </div>
                    <div class="lr-form-item">
                        <div class="lr-form-item-title">期间</div>
                        <input id="period" type="text" class="form-control" readonly/>
                    </div>
                    <div class="lr-form-item">
                        <div class="lr-form-item-title">正常数据</div>
                        <input id="nomalCount" type="text" class="form-control" readonly/>
                    </div>
                    <div class="lr-form-item">
                        <div class="lr-form-item-title">异常数据</div>
                        <input id="errorCount" type="text" class="form-control" readonly/>
                    </div>
                    <div class="lr-form-item">
                        <div class="lr-form-item-title">校验结果</div>
                        <input id="errorFileUrl" type="text" class="form-control" readonly/>
                        <div style="float: right;margin-top: -22px;margin-right: -34px;text-decoration: underline;"><a
                                style="color:blue;cursor:pointer;" onclick="javascript:downloadFile0()">下载</a></div>
                    </div>
                    <div class="lr-form-item">
                        <div class="lr-form-item-title">异常信息</div>
                        <textarea id="errorMsg" class="form-control" style="height: 260px;" readonly></textarea>
                    </div>
                    <div class="lr-form-item">
                        <div class="lr-form-item-title">决算报告</div>
                        <input id="report1FileUrl" type="text" class="form-control" readonly/>
                        <div style="float: right;margin-top: -22px;margin-right: -34px;text-decoration: underline;"><a
                                style="color:blue;cursor:pointer;" onclick="javascript:downloadFile1()">下载</a></div>
                    </div>
                    <div class="lr-form-item">
                        <div class="lr-form-item-title"></div>
                        <input id="report2FileUrl" type="text" class="form-control" readonly/>
                        <div style="float: right;margin-top: -22px;margin-right: -34px;text-decoration: underline;"><a
                                style="color:blue;cursor:pointer;" onclick="javascript:downloadFile2()">下载</a></div>
                    </div>
                    <div class="lr-form-item">
                        <div class="lr-form-item-title"></div>
                        <input id="report3FileUrl" type="text" class="form-control" readonly/>
                        <div style="float: right;margin-top: -22px;margin-right: -34px;text-decoration: underline;"><a
                                style="color:blue;cursor:pointer;" onclick="javascript:downloadFile3()">下载</a></div>
                    </div>
                    <div class="lr-form-item">
                        <div class="lr-form-item-title"></div>
                        <input id="report4FileUrl" type="text" class="form-control" readonly/>
                        <div style="float: right;margin-top: -22px;margin-right: -34px;text-decoration: underline;"><a
                                style="color:blue;cursor:pointer;" onclick="javascript:downloadFile4()">下载</a></div>
                    </div>
                    <div class="lr-form-item">
                        <div class="lr-form-item-title"></div>
                        <input id="report5FileUrl" type="text" class="form-control" readonly/>
                        <div style="float: right;margin-top: -22px;margin-right: -34px;text-decoration: underline;"><a
                                style="color:blue;cursor:pointer;" onclick="javascript:downloadFile5()">下载</a></div>
                    </div>
                    <div class="lr-form-item">
                        <div class="lr-form-item-title"></div>
                        <input id="report6FileUrl" type="text" class="form-control" readonly/>
                        <div style="float: right;margin-top: -22px;margin-right: -34px;text-decoration: underline;"><a
                                style="color:blue;cursor:pointer;" onclick="javascript:downloadFile6()">下载</a></div>
                    </div>

                </div>
            </div>

        </div>
    </div>
</div>


<script src="index.js"></script>


<script src="/module/config.js"></script>
<script src="/module/plugin/resize/resize.js"></script>
<script src="/module/plugin/mousewheel/mousewheel.js"></script>
<script src="/module/plugin/layout/lr-layout.js"></script>
<script src="/module/plugin/scroll/scroll.js"></script>
<script src="/module/plugin/tree/lr-tree.js"></script>
<script src="/module/plugin/select/lr-select.js"></script>
<script src="/module/plugin/timeline/lr-timeline.js"></script>
<script src="/module/plugin/formselect/lr-formselect.js"></script>
<script src="/module/plugin/date/lr-datepicker.js"></script>
<script src="/module/plugin/grid/jfgrid.js"></script>
<script src="/module/script/lr-validator.js"></script>
<script src="/module/script/lr-authorize.js"></script>
<script src="/module/script/lr-excel.js"></script>
<script src="/module/script/lr-form.js"></script>

<script>
    var lrModuleButtonList;
    var lrModuleColumnList;
    var lrModule;
    $(function () {
        $('#lr_layout').lrLayout();


        top.learun.httpAsync('GET', config.base_server() + 'menus/findByPath?path=' + window.location.pathname + '&access_token=' + config.getToken().access_token, null, function (data) {
            lrModuleButtonList = data.btns;
            lrModuleColumnList = data.cols;
            lrModule = data;
            if (!!window.bootstrap) {
                bootstrap(jQuery, top.learun);
            }
        });
    });

    function downloadFile0() {
        window.open($("#errorFileUrl").val(), "_blank");
    }

    function downloadFile1() {
        window.open($("#report1FileUrl").val(), "_blank");
    }

    function downloadFile2() {
        window.open($("#report2FileUrl").val(), "_blank");
    }

    function downloadFile3() {
        window.open($("#report3FileUrl").val(), "_blank");
    }

    function downloadFile4() {
        window.open($("#report4FileUrl").val(), "_blank");
    }

    function downloadFile5() {
        window.open($("#report5FileUrl").val(), "_blank");
    }

    function downloadFile6() {
        window.open($("#report6FileUrl").val(), "_blank");
    }

</script>
</body>

</html>



